function Event(param)
{
	//var sender = param.value;
	var subscribers = [];
	
	this.Invoke = function(args)
	{
		for(var i = 0; i < subscribers.length; i++)
		{
			subscribers[i](args);
		}
	}
	this.AddSubscriber = function(newSubscriber)
	{
		subscribers.push(newSubscriber);
	}
	this.RemoveSubscriber = function(subscriberToRemove)
	{
		for(var i = 0; i < subscribers.length; i++)
		{
			if(subscribers[i] == subscriberToRemove)
			{
				subscribers.splice(i, 1);
			}
		}
	}
}